class Student(object):
    # 类属性count
    count = 0
    def __init__(self,name):
        self.name = name
        Student.count = Student.count + 1

zs = Student('zs')
print(Student.count)

name_list = ['zs','lisi','ww','zl']
for i,_ in enumerate(name_list):
    Student(name_list[i])
    print('类属性count的值为：',Student.count)



